.. _ocajsonsensor: 1.1.2.1.14 OcaJsonSensor ========================= Class Hierarchy: :ref:`OcaRoot ` : :ref:`OcaWorker ` : :ref:`OcaSensor ` : :ref:`OcaBasicSensor ` : :ref:`OcaJsonSensor ` .. cpp:class:: OcaJsonSensor: OcaBasicSensor JSON value actuator, with or without schema. **Properties**: .. _ocajsonsensor_classid: .. cpp:member:: static const OcaClassID ClassID = "1.1.2.1.14" Number that uniquely identifies the class. Note that this differs from the object number, which identifies the instantiated object. This property is an override of the **OcaRoot** property. This property has id ``1.1``. .. _ocajsonsensor_classversion: .. cpp:member:: static const OcaClassVersionNumber ClassVersion = 1 Identifies the interface version of the class. Any change to the class definition leads to a higher class version. This property is an override of the **OcaRoot** property. This property has id ``1.2``. .. _ocajsonsensor_maxlen: .. cpp:member:: OcaUint16 MaxLen Maximum length of the returned value. May be readonly in some implementations. This property has id ``5.2``. .. _ocajsonsensor_value: .. cpp:member:: OcaJsonValue Value The JSON value. This property has id ``5.1``. Properties inherited from :ref:`ocabasicsensor`: - :cpp:texpr:`OcaClassID` :ref:`OcaRoot::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaRoot::ClassVersion ` - :cpp:texpr:`OcaBoolean` :ref:`OcaRoot::Lockable ` - :cpp:texpr:`OcaLockState` :ref:`OcaRoot::LockState ` - :cpp:texpr:`OcaONo` :ref:`OcaRoot::ObjectNumber ` - :cpp:texpr:`OcaString` :ref:`OcaRoot::Role ` - :cpp:texpr:`OcaClassID` :ref:`OcaWorker::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaWorker::ClassVersion ` - :cpp:texpr:`OcaBoolean` :ref:`OcaWorker::Enabled ` - :cpp:texpr:`OcaString` :ref:`OcaWorker::Label ` - :cpp:texpr:`OcaTimeInterval` :ref:`OcaWorker::Latency ` - :cpp:texpr:`OcaONo` :ref:`OcaWorker::Owner ` - :cpp:texpr:`OcaMap` :ref:`OcaWorker::PortClockMap ` - :cpp:texpr:`OcaList` :ref:`OcaWorker::Ports ` - :cpp:texpr:`OcaClassID` :ref:`OcaSensor::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaSensor::ClassVersion ` - :cpp:texpr:`OcaSensorReadingState` :ref:`OcaSensor::ReadingState ` - :cpp:texpr:`OcaClassID` :ref:`OcaBasicSensor::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaBasicSensor::ClassVersion ` **Methods**: .. _ocajsonsensor_getvalue: .. cpp:function:: OcaStatus GetValue(OcaJsonValue &Value) Gets the value of the **Value** property. This method has id ``5.1``. - :cpp:expr:`Value`: Output parameter. .. _ocajsonsensor_getmaxlen: .. cpp:function:: OcaStatus GetMaxLen(OcaUint16 &Len) Gets the maximum number of bytes that may be returned. This method has id ``5.2``. - :cpp:expr:`Len`: Output parameter. .. _ocajsonsensor_setmaxlen: .. cpp:function:: OcaStatus SetMaxLen(OcaUint16 Len) Sets the maximum number of bytes that the object may return. Optional method. This method has id ``5.3``. - :cpp:expr:`Len`: Input parameter. Methods inherited from :ref:`ocabasicsensor`: - :ref:`OcaBasicSensor::GetClassIdentification ` - :ref:`OcaBasicSensor::GetLockable ` - :ref:`OcaBasicSensor::GetLockState ` - :ref:`OcaBasicSensor::GetRole ` - :ref:`OcaBasicSensor::SetLockNoWrite ` - :ref:`OcaBasicSensor::SetLockNoReadWrite ` - :ref:`OcaBasicSensor::Unlock ` - :ref:`OcaBasicSensor::AddPort ` - :ref:`OcaBasicSensor::DeletePort ` - :ref:`OcaBasicSensor::DeletePortClockMapEntry ` - :ref:`OcaBasicSensor::GetEnabled ` - :ref:`OcaBasicSensor::GetLabel ` - :ref:`OcaBasicSensor::GetLatency ` - :ref:`OcaBasicSensor::GetOwner ` - :ref:`OcaBasicSensor::GetPath ` - :ref:`OcaBasicSensor::GetPortClockMap ` - :ref:`OcaBasicSensor::GetPortClockMapEntry ` - :ref:`OcaBasicSensor::GetPortName ` - :ref:`OcaBasicSensor::GetPorts ` - :ref:`OcaBasicSensor::SetEnabled ` - :ref:`OcaBasicSensor::SetLabel ` - :ref:`OcaBasicSensor::SetLatency ` - :ref:`OcaBasicSensor::SetPortClockMap ` - :ref:`OcaBasicSensor::SetPortClockMapEntry ` - :ref:`OcaBasicSensor::SetPortName ` - :ref:`OcaBasicSensor::GetReadingState `